package com.muse.ribbon.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import lombok.extern.slf4j.Slf4j;

/**
 * @description
 * @author: muse
 * @create: 2021-08-17 21:51
 **/
@Slf4j
@RequestMapping("/provider")
@RestController
public class ProducerController {

    @Value("${server.port}")
    private int port;

    // http://localhost:7000/provider/hello
    @RequestMapping("/hello")
    public String hello() {
        log.info("provider hello");
        return "provider hello! port:" + port;
    }

}
